package com.usian.common;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.common.enums.AppHttpCodeEnum;


public abstract class BaseServiceimpl<M extends BaseMapper<T>,T>  extends ServiceImpl<M,T> {
    public ResponseResult errorResult=ResponseResult.errorResult(AppHttpCodeEnum.PARAM_INVALID);
    protected ResponseResult noData=ResponseResult.errorResult(AppHttpCodeEnum.DATA_NOT_EXIST);
    protected ResponseResult tokenInvalid=ResponseResult.errorResult(AppHttpCodeEnum.TOKEN_INVALID);
    public ResponseResult sucResult=ResponseResult.errorResult(AppHttpCodeEnum.SUCCESS);
}
